﻿@inherits BaseComponent

@if (Visible)
{
    <div class="ws-chart">
        <div class="ant-card ant-card-bordered" style="height:100%;">
            <div class="ant-card-head">
                <div class="ant-card-head-wrapper">
                    <div class="ant-card-head-title">@Language[Title]</div>
                    @if (!string.IsNullOrWhiteSpace(tabs))
                    {
                        <AntRadioGroup @bind-Value="current" Category="@tabs" OnChange="OnChanged" ButtonStyle="RadioButtonStyle.Solid" />
                    }
                </div>
            </div>
            <div class="ant-card-body">
                @if (!isLoad)
                {
                    <div class="kui-p10">Loading...</div>
                }
                <KChart @ref="chart" Id="@Id" />
            </div>
        </div>
    </div>
}